﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IPC.DbMapper
{
    public class Equip
    {
        [Column("Ip", TypeName = "text")]
        /// <summary>
        /// 设备ip
        /// </summary>
        public string Ip { get ; set; }
        [Column("Port", TypeName = "text")]
        /// <summary>
        /// 设备端口
        /// </summary>
        public string Port { get; set ; }
        [Column("Name", TypeName = "text")]
        /// <summary>
        /// 设备名称
        /// </summary>
        public string Name { get ; set; }
        [Column("Slot", TypeName = "text")]
        /// <summary>
        /// 设备槽口号
        /// </summary>
        public string Slot { get; set ; }

        [Column("Rack", TypeName = "text")]
        /// <summary>
        /// 设备机架号
        /// </summary>
        public string Rack { get ; set ; }
        /// <summary>
        /// 设备类型
        /// </summary>
        [Column("Type", TypeName = "text")]
        public string Type { get; set ; }
        /// <summary>
        /// 通道类型
        /// </summary>
        [Column("ChannelType", TypeName = "text")]
        public string ChannelType { get ; set ; }
        /// <summary>
        /// 设备全名 主键
        /// </summary>
        
        [Column("EquipFullName", TypeName = "text")]
        public string EquipFullName { get ; set; }

        /// <summary>
        /// 通道名 外键
        /// </summary>
        [Column("ChannelName", TypeName = "text")]
        public string ChannelName { get ; set ; }

        [Key]
        [Column("GUID", TypeName = "text")]
        public string? Guid { get; set; }

    }
}
